package com.zx.idc.backend.gui.common.base;


import com.zx.idc.backend.gui.common.Result;
import com.zx.idc.ds.common.entity.BaseEntity;
import com.zx.idc.ds.common.service.BaseService;
import org.springframework.web.bind.annotation.GetMapping;

import static com.zx.idc.backend.gui.common.ResultBuilder.success;

public interface BaseNotDealTotalApi<Service extends BaseService<Entity>, Entity extends BaseEntity> extends BaseDependencyInjectionApi<Service,Entity>{
    @GetMapping("/not-deal-total")
    default Result<Integer> notDealTotal() {
        return using(BaseNotDealTotalApi.class, service -> success(service.otherTotal()));
    }
}
